﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000EAB RID: 3755
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueCommonGetScepter : IMessage<RogueCommonGetScepter>, IMessage, IEquatable<RogueCommonGetScepter>, IDeepCloneable<RogueCommonGetScepter>, IBufferMessage
	{
		// Token: 0x17002FA3 RID: 12195
		// (get) Token: 0x0600A844 RID: 43076 RVA: 0x001C6943 File Offset: 0x001C4B43
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueCommonGetScepter> Parser
		{
			get
			{
				return RogueCommonGetScepter._parser;
			}
		}

		// Token: 0x17002FA4 RID: 12196
		// (get) Token: 0x0600A845 RID: 43077 RVA: 0x001C694A File Offset: 0x001C4B4A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueCommonGetScepterReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002FA5 RID: 12197
		// (get) Token: 0x0600A846 RID: 43078 RVA: 0x001C695C File Offset: 0x001C4B5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueCommonGetScepter.Descriptor;
			}
		}

		// Token: 0x0600A847 RID: 43079 RVA: 0x001C6963 File Offset: 0x001C4B63
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonGetScepter()
		{
		}

		// Token: 0x0600A848 RID: 43080 RVA: 0x001C696B File Offset: 0x001C4B6B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonGetScepter(RogueCommonGetScepter other) : this()
		{
			this.updateScepterInfo_ = ((other.updateScepterInfo_ != null) ? other.updateScepterInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A849 RID: 43081 RVA: 0x001C69A0 File Offset: 0x001C4BA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonGetScepter Clone()
		{
			return new RogueCommonGetScepter(this);
		}

		// Token: 0x17002FA6 RID: 12198
		// (get) Token: 0x0600A84A RID: 43082 RVA: 0x001C69A8 File Offset: 0x001C4BA8
		// (set) Token: 0x0600A84B RID: 43083 RVA: 0x001C69B0 File Offset: 0x001C4BB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicGameScepterInfo UpdateScepterInfo
		{
			get
			{
				return this.updateScepterInfo_;
			}
			set
			{
				this.updateScepterInfo_ = value;
			}
		}

		// Token: 0x0600A84C RID: 43084 RVA: 0x001C69B9 File Offset: 0x001C4BB9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueCommonGetScepter);
		}

		// Token: 0x0600A84D RID: 43085 RVA: 0x001C69C7 File Offset: 0x001C4BC7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueCommonGetScepter other)
		{
			return other != null && (other == this || (object.Equals(this.UpdateScepterInfo, other.UpdateScepterInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A84E RID: 43086 RVA: 0x001C69FC File Offset: 0x001C4BFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.updateScepterInfo_ != null)
			{
				num ^= this.UpdateScepterInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A84F RID: 43087 RVA: 0x001C6A38 File Offset: 0x001C4C38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A850 RID: 43088 RVA: 0x001C6A40 File Offset: 0x001C4C40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A851 RID: 43089 RVA: 0x001C6A49 File Offset: 0x001C4C49
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.updateScepterInfo_ != null)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.UpdateScepterInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A852 RID: 43090 RVA: 0x001C6A7C File Offset: 0x001C4C7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.updateScepterInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.UpdateScepterInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A853 RID: 43091 RVA: 0x001C6ABC File Offset: 0x001C4CBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueCommonGetScepter other)
		{
			if (other == null)
			{
				return;
			}
			if (other.updateScepterInfo_ != null)
			{
				if (this.updateScepterInfo_ == null)
				{
					this.UpdateScepterInfo = new RogueMagicGameScepterInfo();
				}
				this.UpdateScepterInfo.MergeFrom(other.UpdateScepterInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A854 RID: 43092 RVA: 0x001C6B10 File Offset: 0x001C4D10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A855 RID: 43093 RVA: 0x001C6B1C File Offset: 0x001C4D1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 58U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					if (this.updateScepterInfo_ == null)
					{
						this.UpdateScepterInfo = new RogueMagicGameScepterInfo();
					}
					input.ReadMessage(this.UpdateScepterInfo);
				}
			}
		}

		// Token: 0x04004460 RID: 17504
		private static readonly MessageParser<RogueCommonGetScepter> _parser = new MessageParser<RogueCommonGetScepter>(() => new RogueCommonGetScepter());

		// Token: 0x04004461 RID: 17505
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004462 RID: 17506
		public const int UpdateScepterInfoFieldNumber = 7;

		// Token: 0x04004463 RID: 17507
		private RogueMagicGameScepterInfo updateScepterInfo_;
	}
}
